class PrintProductController < ApplicationController
  def list
    @products = PrintProduct.find(:all)
  end
  
  def new_product
    @product = PrintProduct.find(params[:id])
    @store_product = nil
  end
  
  def create
    store = params[:store]
    model = params[:model]
    obj = eval(model)
    @store_product = obj.create(params[model.downcase.to_sym], 1, 1, 1)
    
    @product = PrintProduct.find("1")
    render :file => "print_product/new_product.rhtml", :use_full_path => true
  end
end
